const express = require('express')

const app = express()

const port = 8000

// 引入用户路由
const user = require("./routes/user");
const goods = require("./routes/goods");

// 让express 来使用路由 
// app.use(默认给user路由添加的前缀, user);
app.use("/user", user);
app.use("/goods", goods);



app.listen(port, () => {
  console.log(`Example app listening at http://localhost:${port}`)
})